package com.emip.bean;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "T_QualityType")
public class QualityTypeBean implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE,generator="S_BASEINFO_ID_GENE")
    @SequenceGenerator(name="S_BASEINFO_ID_GENE",sequenceName="S_BASEINFO_ID", allocationSize = 1)
	private int id;
	@ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
    @JoinColumn(name = "MTypeID")
	private MonitorTypeBean monitorType;
	@Column(name="name")
	private String name ;
	@ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
    @JoinColumn(name = "itemID")
	private ItemBean item;
	@Column(name="MaxValue")
	private double maxValue ;
	@Column(name="MinValue")
	private double minValue ;
	@Column(name="remark")
	private String remark ;
	@Column(name="qlevel")
	private int qlevel ;
	public void setId(int id) {
		this.id = id;
	}
	public int getId() {
		return id;
	}
	public void setMonitorType(MonitorTypeBean monitorType) {
		this.monitorType = monitorType;
	}
	public MonitorTypeBean getMonitorType() {
		return monitorType;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setItem(ItemBean item) {
		this.item = item;
	}
	public ItemBean getItem() {
		return item;
	}
	public void setMaxValue(double maxValue) {
		this.maxValue = maxValue;
	}
	public double getMaxValue() {
		return maxValue;
	}
	public void setMinValue(double minValue) {
		this.minValue = minValue;
	}
	public double getMinValue() {
		return minValue;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getRemark() {
		return remark;
	}
	public void setQlevel(int qlevel) {
		this.qlevel = qlevel;
	}
	public int getQlevel() {
		return qlevel;
	}
}
